package com.city.domain.pub;

import javax.persistence.*;
import java.util.Objects;

/**
 * @deprecation: 房屋结构
 * @dmail: 398521613@qq.com
 * @author: L-H
 * @date: 2018-07-21 18:54
 */
@Entity
@Table(name = "pub_house_structure", schema = "city", catalog = "")
public class PubHouseStructure {
    private int id;
    private String name;
    private String update;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "update")
    public String getUpdate() {
        return update;
    }

    public void setUpdate(String update) {
        this.update = update;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PubHouseStructure that = (PubHouseStructure) o;
        return id == that.id &&
                Objects.equals(name, that.name) &&
                Objects.equals(update, that.update);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, name, update);
    }
}
